
class SearchEntity {
  List<dynamic>? list;
  int? type;

  SearchEntity({this.list, this.type});

  SearchEntity.fromJson(Map<String, dynamic> json) {
    type = json['type'];
    if (json['list'] != null) {
      list = <dynamic>[];
      list = json['list'];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.list != null) {
      data['list'] = this.list!.map((v) => v.toJson()).toList();
    }
    data['type'] = this.type;
    return data;
  }
}